N1 盒子 Ubuntu 3.14 内核开启无线热点

  1. 先开启 3.14 内核无线模块
1
modprobe dhd && echo dhd >> /etc/modules
  1. 由于和后续的 dnsmasq 冲突,需要关掉系统自带的 systemd-resolved 服务
1
2
systemctl stop systemd-resolved
systemctl disable systemd-resolved
  1. 安装要用的 dnsmasq 和 net-tools 组件
1
apt install dnsmasq net-tools
  1. 下载并安装 create_ap 工具
1
2
3
git clone https://github.com/oblique/create_ap
cd create_ap/
make install
  1. 将以下内容保存至 /usr/bin/startap 。注意别忘了修改 YourSSIDHere YourPasswordHere 两个参数。如果有需要使用 2.4GHz 网络的,请去掉 –freq-band 5 –ieee80211ac 参数
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=ap
After=network.target


[Service]
Type=forking
ExecStart=/usr/bin/startap
PrivateTmp=true


[Install]
WantedBy=multi-user.target

并执行

1
2
3
chmod +x /usr/lib/systemd/system/ap.service
systemctl enable ap
systemctl start ap